package com.ygqh.baby.po;

import java.math.BigDecimal;
import java.util.Date;

import com.ygqh.baby.ao.ChannelType;
import com.ygqh.baby.ao.DataStatus;

public class YgChannel {
	private Long id;

	private Long parentId;

	private String channelName;

	private String shortName;

	private String sourceCode;

	private Long channelCategoryId;

	private Date startDate;

	private Date endDate;

	private BigDecimal commissionRate;

	private BigDecimal foreverRate;

	private ChannelType channelType;

	private String linkMan;

	private String telPhone;

	private String linkAddress;

	private String greetings;

	private String remark;

	private DataStatus status;

	private String createBy;

	private Date createTime;

	private String updateBy;

	private Date updateTime;

	/**
	 * 统计渠道扫描用户数量
	 */
	private Long scanAmount;
	/**
	 * 新用户注册数量
	 */
	private Long regAmount;
	/**
	 * 子渠道数量
	 */
	private Long subAmount;

	private Long orderAmount;

	private BigDecimal orderPrice;
	// ===================

	private String categoryName;

	private BigDecimal allPreincomePrice;

	private BigDecimal allBalancePrice;

	private Long userId;

	public BigDecimal getOrderPrice() {
		return orderPrice;
	}

	public void setOrderPrice(BigDecimal orderPrice) {
		this.orderPrice = orderPrice;
	}

	public Long getOrderAmount() {
		return orderAmount;
	}

	public void setOrderAmount(Long orderAmount) {
		this.orderAmount = orderAmount;
	}

	public Long getSubAmount() {
		return subAmount;
	}

	public void setSubAmount(Long subAmount) {
		this.subAmount = subAmount;
	}

	public BigDecimal getAllBalancePrice() {
		return allBalancePrice;
	}

	public void setAllBalancePrice(BigDecimal allBalancePrice) {
		this.allBalancePrice = allBalancePrice;
	}

	public Long getRegAmount() {
		return regAmount;
	}

	public void setRegAmount(Long regAmount) {
		this.regAmount = regAmount;
	}

	public BigDecimal getCommissionRate() {
		return commissionRate;
	}

	public void setCommissionRate(BigDecimal commissionRate) {
		this.commissionRate = commissionRate;
	}

	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getChannelName() {
		return channelName;
	}

	public void setChannelName(String channelName) {
		this.channelName = channelName == null ? null : channelName.trim();
	}

	public String getSourceCode() {
		return sourceCode;
	}

	public void setSourceCode(String sourceCode) {
		this.sourceCode = sourceCode == null ? null : sourceCode.trim();
	}

	public Long getChannelCategoryId() {
		return channelCategoryId;
	}

	public void setChannelCategoryId(Long channelCategoryId) {
		this.channelCategoryId = channelCategoryId;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public ChannelType getChannelType() {
		return channelType;
	}

	public void setChannelType(ChannelType channelType) {
		this.channelType = channelType == null ? null : channelType;
	}

	public String getLinkMan() {
		return linkMan;
	}

	public void setLinkMan(String linkMan) {
		this.linkMan = linkMan == null ? null : linkMan.trim();
	}

	public String getTelPhone() {
		return telPhone;
	}

	public void setTelPhone(String telPhone) {
		this.telPhone = telPhone == null ? null : telPhone.trim();
	}

	public String getLinkAddress() {
		return linkAddress;
	}

	public void setLinkAddress(String linkAddress) {
		this.linkAddress = linkAddress == null ? null : linkAddress.trim();
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark == null ? null : remark.trim();
	}

	public DataStatus getStatus() {
		return status;
	}

	public void setStatus(DataStatus status) {
		this.status = status == null ? null : status;
	}

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy == null ? null : createBy.trim();
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getUpdateBy() {
		return updateBy;
	}

	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy == null ? null : updateBy.trim();
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getGreetings() {
		return greetings;
	}

	public void setGreetings(String greetings) {
		this.greetings = greetings;
	}

	public BigDecimal getForeverRate() {
		return foreverRate;
	}

	public void setForeverRate(BigDecimal foreverRate) {
		this.foreverRate = foreverRate;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public String getShortName() {
		return shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

	public Long getScanAmount() {
		return scanAmount;
	}

	public void setScanAmount(Long scanAmount) {
		this.scanAmount = scanAmount;
	}

	public BigDecimal getAllPreincomePrice() {
		return allPreincomePrice;
	}

	public void setAllPreincomePrice(BigDecimal allPreincomePrice) {
		this.allPreincomePrice = allPreincomePrice;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	@Override
	public String toString() {
		return "YgChannel [id=" + id + ", parentId=" + parentId + ", channelName=" + channelName + ", shortName=" + shortName + ", sourceCode=" + sourceCode
				+ ", channelCategoryId=" + channelCategoryId + ", startDate=" + startDate + ", endDate=" + endDate + ", commissionRate=" + commissionRate
				+ ", foreverRate=" + foreverRate + ", channelType=" + channelType + ", linkMan=" + linkMan + ", telPhone=" + telPhone + ", linkAddress="
				+ linkAddress + ", greetings=" + greetings + ", remark=" + remark + ", status=" + status + ", createBy=" + createBy + ", createTime="
				+ createTime + ", updateBy=" + updateBy + ", updateTime=" + updateTime + ", categoryName=" + categoryName + ", scanAmount=" + scanAmount
				+ ", allPreincomePrice=" + allPreincomePrice + ", allBalancePrice=" + allBalancePrice + ", userId=" + userId + ", regAmount=" + regAmount + "]";
	}

}